﻿using System.Net;

namespace Bricks.Security
{

    /// <summary>
    /// 
    /// </summary>
    public interface IIPAddressFilterFacade
    {

        /// <summary>
        /// 
        /// </summary>
        /// <param name="address"></param>
        /// <returns></returns>
        bool Grant(IPAddress address);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="address"></param>
        /// <param name="key"></param>
        /// <returns></returns>
        bool Grant(IPAddress address, string key);
    }

    /// <summary>
    /// 
    /// </summary>
    /// <typeparam name="TFilter"></typeparam>
    public interface IIPAddressFilterFacade<TFilter> : IIPAddressFilterFacade, IFacade<TFilter>
    {
    }
}
